package com.mzj.saas.mservice.department.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/*
*组织架构表
 */
@Entity
@Table(name = "saas_department")
public class Department extends IdEntity {
    /*
    *父级Id
     */
    @Column(name = "parent_id", nullable = true)
    private Long parentId;
    /*
    *名称
     */
    @Column(name = "name", nullable = true)
    private String name;
    /*
     *省
     */
    @Column(name = "province_id", nullable = true)
    private Long provinceId;
    /*
     *市
     */
    @Column(name = "city_id", nullable = true)
    private Long cityId;
    /*
     *区
     */
    @Column(name = "district_id", nullable = true)
    private Long districtId;
    /*
     *社区
     */
    @Column(name = "street_id", nullable = true)
    private Long streetId;

    /*
     *街道
     */
    @Column(name = "community_id", nullable = true)
    private Long communityId;
    /*
     *编码
     */
    @Column(name = "code", nullable = true)
    private String code;
    /*
     *排序
     */
    @Column(name = "sortby", nullable = true)
    private Integer sortby;


    /*
     *类型：1企业  2政府部门 3企业内部
     */
    @Column(name = "type", nullable = true)
    private Integer type;
    /*
     *级别：根据code计算
     */
    @Column(name = "level", nullable = true)
    private Integer level;
    /*
     *限制人数
     */
    @Column(name = "max_num", nullable = true)
    private Integer maxNum;
    /*
     *激活状态：0未激活  1已激活
     */
    @Column(name = "activate_status", nullable = true)
    private Integer activateStatus;
    /*
     *绿色通道状态：0禁用1启用
     */
    @Column(name = "status", nullable = true)
    private Integer status;

    /*
     *logo
     */
    @Column(name = "icon", nullable = true)
    private String icon;


    /*
    *产权单位：0否 1是
     */
    @Column(name = "owner_type", nullable = true)
    private Integer ownerType;
    /*
     *创建时间
     */
    @Column(name = "create_time", nullable = true)
    private Date createTime;
    /*
     *简介
     */
    @Column(name = "decription", nullable = true)
    private String decription;
    /*
     *收款方式：0平台商户号收款 1企业商户号收款
     */
    @Column(name = "merchants_type", nullable = true)
    private Integer merchantsType;
    /*
     *公租房审批状态：0需要审批 1不用审批 默认0
     */
    @Column(name = "bind_auit_status", nullable = true)
    private Integer bindAuitStatus;

    /**
     * 未开门消息推送提醒（0：所有用户信息推送；1：重点关注人群信息推送）
     */
    @Column(name = "open_push_message_type", nullable = true)
    private String openPushMessageType;

    /**
     * 未开门提醒天数
     */
    @Column(name = "open_push_message_day", nullable = true)
    private Integer openPushMessageDay;

    public Integer getActivateStatus() {
        return activateStatus;
    }

    public void setActivateStatus(Integer activateStatus) {
        this.activateStatus = activateStatus;
    }
    public Long getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }
    public Integer getOwnerType() {
        return ownerType;
    }

    public void setOwnerType(Integer ownerType) {
        this.ownerType = ownerType;
    }

    public Integer getSortby() {
        return sortby;
    }

    public void setSortby(Integer sortby) {
        this.sortby = sortby;
    }
    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Long provinceId) {
        this.provinceId = provinceId;
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Long getDistrictId() {
        return districtId;
    }

    public void setDistrictId(Long districtId) {
        this.districtId = districtId;
    }

    public Long getStreetId() {
        return streetId;
    }

    public void setStreetId(Long streetId) {
        this.streetId = streetId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getMaxNum() {
        return maxNum;
    }

    public void setMaxNum(Integer maxNum) {
        this.maxNum = maxNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDecription() {
        return decription;
    }

    public void setDecription(String decription) {
        this.decription = decription;
    }

	public Integer getMerchantsType() {
		return merchantsType;
	}

	public void setMerchantsType(Integer merchantsType) {
		this.merchantsType = merchantsType;
	}

    public Integer getBindAuitStatus() {
        return bindAuitStatus;
    }

    public void setBindAuitStatus(Integer bindAuitStatus) {
        this.bindAuitStatus = bindAuitStatus;
    }

    public String getOpenPushMessageType() {
        return openPushMessageType;
    }

    public void setOpenPushMessageType(String openPushMessageType) {
        this.openPushMessageType = openPushMessageType;
    }

    public Integer getOpenPushMessageDay() {
        return openPushMessageDay;
    }

    public void setOpenPushMessageDay(Integer openPushMessageDay) {
        this.openPushMessageDay = openPushMessageDay;
    }
}
